home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 7 / FM Towns Free Software Collection 7.iso / t_os / qa / mode.c < prev    next >
C/C++ Source or Header  |  1993-11-30  |  367b  |  20 lines

  1. #include <stdio.h>
  2. #include <conio.h>
  3. #include <string.h>
  4.  
  5. void main(int argc, char *argv[])
  6. {
  7.     if (argc <= 1) {
  8.         outp(0x05ec, !inp(0x05ec));
  9.         return;
  10.     }
  11.     if (strcmp(argv[1], "-h") == 0) {
  12.         outp(0x05ec, 1);
  13.         puts("高速モードに設定しました。");
  14.     }
  15.     if (strcmp(argv[1], "-l") == 0) {
  16.         outp(0x05ec, 0);
  17.         puts("互換モードに設定しました。");
  18.     }
  19. }
  20.